<template>
  <div v-html="context">
    {{context}}
  </div>
</template>
<script>
  import {msgcontent, ajax} from '../../data/wap-service'
  export default {
    data(){
      return {
        context:'',
        msgId:''
      }
    },
    mixins:[ajax],
    created(){
      this.msgId=this.$route.params.msgid;
      this.loadMsg();
    },
    methods:{
      loadMsg(){
        this.doajax(msgcontent,{'msgId':this.msgId},(resp) => {
          this.context=resp.context;
        });
      }
    }
  }
</script>
